body {
  width: 100%;
  max-width: 640px;
  min-width: 320px;
  margin: 0 auto;
  background-color: #fff;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/*点击高亮我们需要清除清除  设置为transparent 完成透明*/

* {
  -webkit-tap-highlight-color: transparent;
}

/*在移动端浏览器默认的外观在iOS上加上这个属性才能给按钮和输入框自定义样式*/

input {
  -webkit-appearance: none;
}
/*禁用长按页面时的弹出菜单*/

img,
a {
  -webkit-touch-callout: none;
}
/* 去除图片底部空白间隙 */
img {
  vertical-align: middle;
}
div {
  /* css3 盒子模型 */
  box-sizing: border-box;
}
a {
  color: #666;
  text-decoration: none;
}

.clearfix:after {
  content: "";
  display: block;
  line-height: 0;
  visibility: hidden;
  height: 0;
  clear: both;
}
.app {
  height: 45px;
  ul {
    margin: 0;
    padding: 0;
    list-style: none;
    li {
      float: left;
      background-color: #333;
      height: 45px;
      line-height: 45px;
      text-align: center;
      color: #fff;
      &:nth-child(1) {
        width: 8%;
        img {
          width: 10px;
        }
      }
      &:nth-child(2) {
        width: 10%;
        img {
          width: 30px;
          vertical-align: middle;
        }
      }
      &:nth-child(3) {
        width: 57%;
      }
      &:nth-child(4) {
        width: 25%;
        background-color: #f63515;
      }
    }
  }
}
.search-wrap {
  height: 44px;
  position: fixed;
  overflow: hidden;
  min-width: 320px;
  max-width: 640px;
  width: 100%;
  .search-btn {
    position: absolute;
    top: 0;
    left: 0;

    width: 40px;
    height: 44px;
    &::before {
      content: "";
      display: block;
      width: 20px;
      height: 18px;
      background: url(../images/s-btn.png) no-repeat;
      background-size: 20px 18px;
      margin: 14px 0 0 15px;
    }
  }
  .search-login {
    position: absolute;
    top: 0;
    right: 0;

    width: 40px;
    height: 44px;
    line-height: 44px;
    color: #fff;
  }
  .search {
    height: 30px;
    background-color: #fff;
    margin: 0 50px;
    border-radius: 15px;
    margin-top: 7px;
    position: relative;
    .jd-icon {
      width: 20px;
      height: 15px;
      position: absolute;
      top: 8px;
      left: 13px;
      background: url(../images/jd.png);
      background-size: 20px 15px;

      &::after {
        content: "";
        display: block;
        width: 1px;
        height: 15px;
        background-color: #ccc;
        position: absolute;
        right: -8px;
        top: 0;
      }
    }
    .sou {
      width: 18px;
      height: 15px;
      background: url(../images/jd-sprites.png) no-repeat -81px 0;
      position: absolute;
      top: 8px;
      left: 50px;
      background-size: 200px auto;
    }
  }
}

.slider {
  img {
    width: 100%;
  }
}

.brand {
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  div {
    width: 33.33%;
    float: left;
    img {
      width: 100%;
    }
  }
}

nav {
  padding-top: 5px;

  a {
    float: left;
    width: 20%;
    text-align: center;
    img {
      width: 40px;
      margin: 10px 0;
    }
    span {
      display: block;
    }
  }
}

.news {
  margin-top: 20px;

  height: 100px;
  a {
    float: left;
    box-sizing: border-box;
    &:nth-child(1) {
      width: 50%;
    }
    /* n+2就是从第二个往后面选 */
    &:nth-child(n + 2) {
      width: 25%;
      border-left: 1px solid #ccc;
    }
    img {
      width: 100%;
    }
  }
}
